package models

data class LocationUi(
    val id: Int,
    val name: String
) {
    companion object {
        fun from(location: Location): LocationUi {
            return LocationUi(
                location.id,
                location.name
            )
        }
    }
}